package com.monlyu.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/********************************************************************************
 * 
 * <b>功能描述☞</b>外出人员表<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>NewsSys<br>
 * <b>文件路径☞</b>com.monlyu.vo.Out2User.java<br>
 * <b>开发日期☞</b>2010-2-9 <br>
 * 
 * @author monlyu
 * @since JDK 5
 * @version 1.0.8
 * 
 ********************************************************************************/
@Entity(name = "t_o2u")
@Comment(common = "外出人员表")
public class Out2User extends BaseVo {

	@Id
	@Column(name = "o2u_id")
	@Comment(common = "编号")
	private Long id;

	@ManyToOne
	@JoinColumn(name = "o2u_outerApp", nullable = false)
	@Comment(common = "申请单")
	private OuterApp outerApp;

	@ManyToOne
	@JoinColumn(name = "o2u_user", nullable = false)
	@Comment(common = "外出人员编号")
	private User user;

	@Column(name = "o2u_dty", length = MAX_VCHAR_MYSQL)
	@Comment(common = "外出职务")
	private String duty;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public OuterApp getOuterApp() {
		return outerApp;
	}

	public void setOuterApp(OuterApp outerApp) {
		this.outerApp = outerApp;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}
}
